ModifySecurityGroupPolicy
Description
Call the ModifySecurityGroupPolicy to modify the internal network connection policy of the normal security group. The enterprise security group does not support modifying the internal network connection policy of the group.
Request Method
POST
Request Path
/apsara/route/Ecs/ModifySecurityGroupPolicy
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
SecurityGroupId | BODY | string | Yes | sg-bp67acfmxazb4ph*** | ID of the security group. |
InnerAccessPolicy | BODY | string | Yes | Drop | Intranet connectivity policy between ECS instances in the security group. Value range: Accept: Interoperability Drop: Isolation The value is not case sensitive. |
RegionId | BODY | string | Yes | cn-qingdao-env17-d01 | the region ID of the security group. You can call the DescribeRegions to view the latest region list. |
ClientToken | BODY | string | No | 123e4567-e89b-12d3-a456-426655440000 | Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. ClientToken only supports ASCII characters and cannot exceed 64 characters. For more details, please refer to the section on how to ensure idempotence in the cloud server ECS development guide. |
version | BODY | string | No | 2016-01-01 | version of api |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}